<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: QwtScaleMap Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_qwt_scale_map.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_qwt_scale_map-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QwtScaleMap Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A scale map.  
 <a href="class_qwt_scale_map.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="qwt__scale__map_8h_source.html">qwt_scale_map.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9576a2e19c0be1d036fee344ab68f542"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a9576a2e19c0be1d036fee344ab68f542">QwtScaleMap</a> ()</td></tr>
<tr class="memdesc:a9576a2e19c0be1d036fee344ab68f542"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="class_qwt_scale_map.html#a9576a2e19c0be1d036fee344ab68f542">More...</a><br /></td></tr>
<tr class="separator:a9576a2e19c0be1d036fee344ab68f542"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a579bc766106d98edd7153e62ea77a19b"><td class="memItemLeft" align="right" valign="top"><a id="a579bc766106d98edd7153e62ea77a19b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a579bc766106d98edd7153e62ea77a19b">QwtScaleMap</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;)</td></tr>
<tr class="memdesc:a579bc766106d98edd7153e62ea77a19b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor. <br /></td></tr>
<tr class="separator:a579bc766106d98edd7153e62ea77a19b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecafd09423984a5e0ffa935d1b45110c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#aecafd09423984a5e0ffa935d1b45110c">~QwtScaleMap</a> ()</td></tr>
<tr class="separator:aecafd09423984a5e0ffa935d1b45110c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f55ef14f8874e626380fcf92b096791"><td class="memItemLeft" align="right" valign="top"><a id="a3f55ef14f8874e626380fcf92b096791"></a>
<a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a3f55ef14f8874e626380fcf92b096791">operator=</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;)</td></tr>
<tr class="memdesc:a3f55ef14f8874e626380fcf92b096791"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment operator. <br /></td></tr>
<tr class="separator:a3f55ef14f8874e626380fcf92b096791"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8e971dd4be07801f0adc99549153718"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#ad8e971dd4be07801f0adc99549153718">setTransformation</a> (<a class="el" href="class_qwt_transform.html">QwtTransform</a> *)</td></tr>
<tr class="separator:ad8e971dd4be07801f0adc99549153718"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a810c561caaad7d6573a1e8ff06fe4b23"><td class="memItemLeft" align="right" valign="top"><a id="a810c561caaad7d6573a1e8ff06fe4b23"></a>
const <a class="el" href="class_qwt_transform.html">QwtTransform</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a810c561caaad7d6573a1e8ff06fe4b23">transformation</a> () const</td></tr>
<tr class="memdesc:a810c561caaad7d6573a1e8ff06fe4b23"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the transformation. <br /></td></tr>
<tr class="separator:a810c561caaad7d6573a1e8ff06fe4b23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a994240e446986112f196a65657dc9755"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a994240e446986112f196a65657dc9755">setPaintInterval</a> (double <a class="el" href="class_qwt_scale_map.html#a4d03a9fea3bd9b66a0b882b8b1a58f4b">p1</a>, double <a class="el" href="class_qwt_scale_map.html#acd78b70fae83854a148fa3d08b13c261">p2</a>)</td></tr>
<tr class="memdesc:a994240e446986112f196a65657dc9755"><td class="mdescLeft">&#160;</td><td class="mdescRight">Specify the borders of the paint device interval.  <a href="class_qwt_scale_map.html#a994240e446986112f196a65657dc9755">More...</a><br /></td></tr>
<tr class="separator:a994240e446986112f196a65657dc9755"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa33bc8e1aed7aa17d345053194e7094"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#aaa33bc8e1aed7aa17d345053194e7094">setScaleInterval</a> (double <a class="el" href="class_qwt_scale_map.html#a64b15c76aa63a521447215018c75bf37">s1</a>, double <a class="el" href="class_qwt_scale_map.html#a7c8c969923c15880c4620be1d814ef18">s2</a>)</td></tr>
<tr class="memdesc:aaa33bc8e1aed7aa17d345053194e7094"><td class="mdescLeft">&#160;</td><td class="mdescRight">Specify the borders of the scale interval.  <a href="class_qwt_scale_map.html#aaa33bc8e1aed7aa17d345053194e7094">More...</a><br /></td></tr>
<tr class="separator:aaa33bc8e1aed7aa17d345053194e7094"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a504f1627e0e02ddac03d2ce46507b865"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a> (double s) const</td></tr>
<tr class="separator:a504f1627e0e02ddac03d2ce46507b865"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1ee6d62addf3f9cf091d425be9ac642"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform</a> (double p) const</td></tr>
<tr class="separator:ab1ee6d62addf3f9cf091d425be9ac642"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d03a9fea3bd9b66a0b882b8b1a58f4b"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a4d03a9fea3bd9b66a0b882b8b1a58f4b">p1</a> () const</td></tr>
<tr class="separator:a4d03a9fea3bd9b66a0b882b8b1a58f4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd78b70fae83854a148fa3d08b13c261"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#acd78b70fae83854a148fa3d08b13c261">p2</a> () const</td></tr>
<tr class="separator:acd78b70fae83854a148fa3d08b13c261"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64b15c76aa63a521447215018c75bf37"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a64b15c76aa63a521447215018c75bf37">s1</a> () const</td></tr>
<tr class="separator:a64b15c76aa63a521447215018c75bf37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c8c969923c15880c4620be1d814ef18"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a7c8c969923c15880c4620be1d814ef18">s2</a> () const</td></tr>
<tr class="separator:a7c8c969923c15880c4620be1d814ef18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a456d76a849af8c465692c0481bdd12ad"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a456d76a849af8c465692c0481bdd12ad">pDist</a> () const</td></tr>
<tr class="separator:a456d76a849af8c465692c0481bdd12ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a953eb3e6584d8a6ca4d5fff98a9a0aa0"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a953eb3e6584d8a6ca4d5fff98a9a0aa0">sDist</a> () const</td></tr>
<tr class="separator:a953eb3e6584d8a6ca4d5fff98a9a0aa0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a283100be40b08db7df078b8a0ee1d19c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a283100be40b08db7df078b8a0ee1d19c">isInverting</a> () const</td></tr>
<tr class="separator:a283100be40b08db7df078b8a0ee1d19c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:af99eeda829142128f97e0b6c4fbf9e1f"><td class="memItemLeft" align="right" valign="top">static QRectF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#af99eeda829142128f97e0b6c4fbf9e1f">transform</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;, const QRectF &amp;)</td></tr>
<tr class="separator:af99eeda829142128f97e0b6c4fbf9e1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fe572f224a14672684fd929c55568f8"><td class="memItemLeft" align="right" valign="top">static QRectF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a8fe572f224a14672684fd929c55568f8">invTransform</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;, const QRectF &amp;)</td></tr>
<tr class="separator:a8fe572f224a14672684fd929c55568f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6be600afa5bd75f5ff52b1f102b123b0"><td class="memItemLeft" align="right" valign="top">static QPointF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a6be600afa5bd75f5ff52b1f102b123b0">transform</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;, const QPointF &amp;)</td></tr>
<tr class="separator:a6be600afa5bd75f5ff52b1f102b123b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08dc05a17283c531e2c1d79fd52bc56a"><td class="memItemLeft" align="right" valign="top">static QPointF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_map.html#a08dc05a17283c531e2c1d79fd52bc56a">invTransform</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;, const QPointF &amp;)</td></tr>
<tr class="separator:a08dc05a17283c531e2c1d79fd52bc56a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A scale map. </p>
<p><a class="el" href="class_qwt_scale_map.html" title="A scale map.">QwtScaleMap</a> offers transformations from the coordinate system of a scale into the linear coordinate system of a paint device and vice versa. </p>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8h_source.html#l00026">26</a> of file <a class="el" href="qwt__scale__map_8h_source.html">qwt_scale_map.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a9576a2e19c0be1d036fee344ab68f542"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9576a2e19c0be1d036fee344ab68f542">&#9670;&nbsp;</a></span>QwtScaleMap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QwtScaleMap::QwtScaleMap </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor. </p>
<p>The scale and paint device intervals are both set to [0,1]. </p>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8cpp_source.html#l00021">21</a> of file <a class="el" href="qwt__scale__map_8cpp_source.html">qwt_scale_map.cpp</a>.</p>

</div>
</div>
<a id="aecafd09423984a5e0ffa935d1b45110c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aecafd09423984a5e0ffa935d1b45110c">&#9670;&nbsp;</a></span>~QwtScaleMap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QwtScaleMap::~QwtScaleMap </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Destructor </p>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8cpp_source.html#l00049">49</a> of file <a class="el" href="qwt__scale__map_8cpp_source.html">qwt_scale_map.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a08dc05a17283c531e2c1d79fd52bc56a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08dc05a17283c531e2c1d79fd52bc56a">&#9670;&nbsp;</a></span>invTransform() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QPointF QwtScaleMap::invTransform </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>xMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>yMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QPointF &amp;&#160;</td>
          <td class="paramname"><em>pos</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Transform a rectangle from paint to scale coordinates</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">xMap</td><td>X map </td></tr>
    <tr><td class="paramname">yMap</td><td>Y map </td></tr>
    <tr><td class="paramname">pos</td><td>Position in paint coordinates </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Position in scale coordinates </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform()</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8cpp_source.html#l00187">187</a> of file <a class="el" href="qwt__scale__map_8cpp_source.html">qwt_scale_map.cpp</a>.</p>

</div>
</div>
<a id="a8fe572f224a14672684fd929c55568f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8fe572f224a14672684fd929c55568f8">&#9670;&nbsp;</a></span>invTransform() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QRectF QwtScaleMap::invTransform </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>xMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>yMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QRectF &amp;&#160;</td>
          <td class="paramname"><em>rect</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Transform a rectangle from paint to scale coordinates</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">xMap</td><td>X map </td></tr>
    <tr><td class="paramname">yMap</td><td>Y map </td></tr>
    <tr><td class="paramname">rect</td><td>Rectangle in paint coordinates </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Rectangle in scale coordinates </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform()</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8cpp_source.html#l00224">224</a> of file <a class="el" href="qwt__scale__map_8cpp_source.html">qwt_scale_map.cpp</a>.</p>

</div>
</div>
<a id="ab1ee6d62addf3f9cf091d425be9ac642"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1ee6d62addf3f9cf091d425be9ac642">&#9670;&nbsp;</a></span>invTransform() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double QwtScaleMap::invTransform </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Transform an paint device value into a value in the interval of the scale.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>Value relative to the coordinates of the paint device </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Transformed value</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform()</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8h_source.html#l00154">154</a> of file <a class="el" href="qwt__scale__map_8h_source.html">qwt_scale_map.h</a>.</p>

</div>
</div>
<a id="a283100be40b08db7df078b8a0ee1d19c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a283100be40b08db7df078b8a0ee1d19c">&#9670;&nbsp;</a></span>isInverting()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtScaleMap::isInverting </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>True, when ( <a class="el" href="class_qwt_scale_map.html#a4d03a9fea3bd9b66a0b882b8b1a58f4b">p1()</a> &lt; <a class="el" href="class_qwt_scale_map.html#acd78b70fae83854a148fa3d08b13c261">p2()</a> ) != ( <a class="el" href="class_qwt_scale_map.html#a64b15c76aa63a521447215018c75bf37">s1()</a> &lt; <a class="el" href="class_qwt_scale_map.html#a7c8c969923c15880c4620be1d814ef18">s2()</a> ) </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8h_source.html#l00164">164</a> of file <a class="el" href="qwt__scale__map_8h_source.html">qwt_scale_map.h</a>.</p>

</div>
</div>
<a id="a4d03a9fea3bd9b66a0b882b8b1a58f4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d03a9fea3bd9b66a0b882b8b1a58f4b">&#9670;&nbsp;</a></span>p1()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double QwtScaleMap::p1 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>First border of the paint interval </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8h_source.html#l00099">99</a> of file <a class="el" href="qwt__scale__map_8h_source.html">qwt_scale_map.h</a>.</p>

</div>
</div>
<a id="acd78b70fae83854a148fa3d08b13c261"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd78b70fae83854a148fa3d08b13c261">&#9670;&nbsp;</a></span>p2()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double QwtScaleMap::p2 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Second border of the paint interval </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8h_source.html#l00107">107</a> of file <a class="el" href="qwt__scale__map_8h_source.html">qwt_scale_map.h</a>.</p>

</div>
</div>
<a id="a456d76a849af8c465692c0481bdd12ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a456d76a849af8c465692c0481bdd12ad">&#9670;&nbsp;</a></span>pDist()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double QwtScaleMap::pDist </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>qwtAbs(<a class="el" href="class_qwt_scale_map.html#acd78b70fae83854a148fa3d08b13c261">p2()</a> - <a class="el" href="class_qwt_scale_map.html#a4d03a9fea3bd9b66a0b882b8b1a58f4b">p1()</a>) </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8h_source.html#l00115">115</a> of file <a class="el" href="qwt__scale__map_8h_source.html">qwt_scale_map.h</a>.</p>

</div>
</div>
<a id="a64b15c76aa63a521447215018c75bf37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64b15c76aa63a521447215018c75bf37">&#9670;&nbsp;</a></span>s1()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double QwtScaleMap::s1 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>First border of the scale interval </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8h_source.html#l00083">83</a> of file <a class="el" href="qwt__scale__map_8h_source.html">qwt_scale_map.h</a>.</p>

</div>
</div>
<a id="a7c8c969923c15880c4620be1d814ef18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c8c969923c15880c4620be1d814ef18">&#9670;&nbsp;</a></span>s2()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double QwtScaleMap::s2 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Second border of the scale interval </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8h_source.html#l00091">91</a> of file <a class="el" href="qwt__scale__map_8h_source.html">qwt_scale_map.h</a>.</p>

</div>
</div>
<a id="a953eb3e6584d8a6ca4d5fff98a9a0aa0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a953eb3e6584d8a6ca4d5fff98a9a0aa0">&#9670;&nbsp;</a></span>sDist()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double QwtScaleMap::sDist </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>qwtAbs(<a class="el" href="class_qwt_scale_map.html#a7c8c969923c15880c4620be1d814ef18">s2()</a> - <a class="el" href="class_qwt_scale_map.html#a64b15c76aa63a521447215018c75bf37">s1()</a>) </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8h_source.html#l00123">123</a> of file <a class="el" href="qwt__scale__map_8h_source.html">qwt_scale_map.h</a>.</p>

</div>
</div>
<a id="a994240e446986112f196a65657dc9755"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a994240e446986112f196a65657dc9755">&#9670;&nbsp;</a></span>setPaintInterval()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtScaleMap::setPaintInterval </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>p1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>p2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Specify the borders of the paint device interval. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p1</td><td>first border </td></tr>
    <tr><td class="paramname">p2</td><td>second border </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8cpp_source.html#l00119">119</a> of file <a class="el" href="qwt__scale__map_8cpp_source.html">qwt_scale_map.cpp</a>.</p>

</div>
</div>
<a id="aaa33bc8e1aed7aa17d345053194e7094"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa33bc8e1aed7aa17d345053194e7094">&#9670;&nbsp;</a></span>setScaleInterval()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtScaleMap::setScaleInterval </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>s1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>s2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Specify the borders of the scale interval. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">s1</td><td>first border </td></tr>
    <tr><td class="paramname">s2</td><td>second border </td></tr>
  </table>
  </dd>
</dl>
<dl class="section warning"><dt>Warning</dt><dd>scales might be aligned to transformation depending boundaries </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8cpp_source.html#l00100">100</a> of file <a class="el" href="qwt__scale__map_8cpp_source.html">qwt_scale_map.cpp</a>.</p>

</div>
</div>
<a id="ad8e971dd4be07801f0adc99549153718"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8e971dd4be07801f0adc99549153718">&#9670;&nbsp;</a></span>setTransformation()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtScaleMap::setTransformation </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_transform.html">QwtTransform</a> *&#160;</td>
          <td class="paramname"><em>transform</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Initialize the map with a transformation </p>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8cpp_source.html#l00076">76</a> of file <a class="el" href="qwt__scale__map_8cpp_source.html">qwt_scale_map.cpp</a>.</p>

</div>
</div>
<a id="a6be600afa5bd75f5ff52b1f102b123b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6be600afa5bd75f5ff52b1f102b123b0">&#9670;&nbsp;</a></span>transform() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QPointF QwtScaleMap::transform </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>xMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>yMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QPointF &amp;&#160;</td>
          <td class="paramname"><em>pos</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Transform a point from scale to paint coordinates</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">xMap</td><td>X map </td></tr>
    <tr><td class="paramname">yMap</td><td>Y map </td></tr>
    <tr><td class="paramname">pos</td><td>Position in scale coordinates </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Position in paint coordinates</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform()</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8cpp_source.html#l00206">206</a> of file <a class="el" href="qwt__scale__map_8cpp_source.html">qwt_scale_map.cpp</a>.</p>

</div>
</div>
<a id="af99eeda829142128f97e0b6c4fbf9e1f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af99eeda829142128f97e0b6c4fbf9e1f">&#9670;&nbsp;</a></span>transform() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QRectF QwtScaleMap::transform </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>xMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
          <td class="paramname"><em>yMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QRectF &amp;&#160;</td>
          <td class="paramname"><em>rect</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Transform a rectangle from scale to paint coordinates</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">xMap</td><td>X map </td></tr>
    <tr><td class="paramname">yMap</td><td>Y map </td></tr>
    <tr><td class="paramname">rect</td><td>Rectangle in scale coordinates </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Rectangle in paint coordinates</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform()</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8cpp_source.html#l00153">153</a> of file <a class="el" href="qwt__scale__map_8cpp_source.html">qwt_scale_map.cpp</a>.</p>

</div>
</div>
<a id="a504f1627e0e02ddac03d2ce46507b865"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a504f1627e0e02ddac03d2ce46507b865">&#9670;&nbsp;</a></span>transform() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double QwtScaleMap::transform </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Transform a point related to the scale interval into an point related to the interval of the paint device</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>Value relative to the coordinates of the scale </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Transformed value</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform()</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__scale__map_8h_source.html#l00137">137</a> of file <a class="el" href="qwt__scale__map_8h_source.html">qwt_scale_map.h</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
